Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
60 / 60 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | |
| 3 | return [ |
| 4 | |
| 5 | /* |
| 6 | |-------------------------------------------------------------------------- |
| 7 | | Default Mailer |
| 8 | |-------------------------------------------------------------------------- |
| 9 | | |
| 10 | | This option controls the default mailer that is used to send all email |
| 11 | | messages unless another mailer is explicitly specified when sending |
| 12 | | the message. All additional mailers can be configured within the |
| 13 | | "mailers" array. Examples of each type of mailer are provided. |
| 14 | | |
| 15 | */ |
| 16 | |
| 17 | 'default' => env('MAIL_MAILER', 'log'), |
| 18 | |
| 19 | /* |
| 20 | |-------------------------------------------------------------------------- |
| 21 | | Mailer Configurations |
| 22 | |-------------------------------------------------------------------------- |
| 23 | | |
| 24 | | Here you may configure all of the mailers used by your application plus |
| 25 | | their respective settings. Several examples have been configured for |
| 26 | | you and you are free to add your own as your application requires. |
| 27 | | |
| 28 | | Laravel supports a variety of mail "transport" drivers that can be used |
| 29 | | when delivering an email. You may specify which one you're using for |
| 30 | | your mailers below. You may also add additional mailers if needed. |
| 31 | | |
| 32 | | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", |
| 33 | | "postmark", "resend", "log", "array", |
| 34 | | "failover", "roundrobin" |
| 35 | | |
| 36 | */ |
| 37 | |
| 38 | 'mailers' => [ |
| 39 | |
| 40 | 'smtp' => [ |
| 41 | 'transport' => 'smtp', |
| 42 | 'scheme' => env('MAIL_SCHEME'), |
| 43 | 'url' => env('MAIL_URL'), |
| 44 | 'host' => env('MAIL_HOST', '127.0.0.1'), |
| 45 | 'port' => env('MAIL_PORT', 2525), |
| 46 | 'username' => env('MAIL_USERNAME'), |
| 47 | 'password' => env('MAIL_PASSWORD'), |
| 48 | 'timeout' => null, |
| 49 | 'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url((string) env('APP_URL', 'http://localhost'), PHP_URL_HOST)), |
| 50 | ], |
| 51 | |
| 52 | 'ses' => [ |
| 53 | 'transport' => 'ses', |
| 54 | ], |
| 55 | |
| 56 | 'postmark' => [ |
| 57 | 'transport' => 'postmark', |
| 58 | // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'), |
| 59 | // 'client' => [ |
| 60 | // 'timeout' => 5, |
| 61 | // ], |
| 62 | ], |
| 63 | |
| 64 | 'resend' => [ |
| 65 | 'transport' => 'resend', |
| 66 | ], |
| 67 | |
| 68 | 'sendmail' => [ |
| 69 | 'transport' => 'sendmail', |
| 70 | 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), |
| 71 | ], |
| 72 | |
| 73 | 'log' => [ |
| 74 | 'transport' => 'log', |
| 75 | 'channel' => env('MAIL_LOG_CHANNEL'), |
| 76 | ], |
| 77 | |
| 78 | 'array' => [ |
| 79 | 'transport' => 'array', |
| 80 | ], |
| 81 | |
| 82 | 'failover' => [ |
| 83 | 'transport' => 'failover', |
| 84 | 'mailers' => [ |
| 85 | 'smtp', |
| 86 | 'log', |
| 87 | ], |
| 88 | 'retry_after' => 60, |
| 89 | ], |
| 90 | |
| 91 | 'roundrobin' => [ |
| 92 | 'transport' => 'roundrobin', |
| 93 | 'mailers' => [ |
| 94 | 'ses', |
| 95 | 'postmark', |
| 96 | ], |
| 97 | 'retry_after' => 60, |
| 98 | ], |
| 99 | |
| 100 | ], |
| 101 | |
| 102 | /* |
| 103 | |-------------------------------------------------------------------------- |
| 104 | | Global "From" Address |
| 105 | |-------------------------------------------------------------------------- |
| 106 | | |
| 107 | | You may wish for all emails sent by your application to be sent from |
| 108 | | the same address. Here you may specify a name and address that is |
| 109 | | used globally for all emails that are sent by your application. |
| 110 | | |
| 111 | */ |
| 112 | |
| 113 | 'from' => [ |
| 114 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), |
| 115 | 'name' => env('MAIL_FROM_NAME', 'Example'), |
| 116 | ], |
| 117 | |
| 118 | ]; |